#include "FileManagement.h"


FileManagement::FileManagement() {
}


FileManagement::~FileManagement() {
}


bool FileManagement::Open(LPCWSTR fileName) {
	std::fstream file;
	file.open(fileName);
	if (file.is_open())
		return true;
	return false;
}


void FileManagement::Close(LPCWSTR) {
	std::fstream file;
	file.close();
}


void FileManagement::WriteTo(LPCWSTR, char*) {
}


bool FileManagement::fileExists(LPCWSTR fileName) {
	size_t size = m_files.size();

	if (size == 0)
		return false;

	for (int i = 0; i < size; ++i) {
		if (m_files.at(i) == fileName)
			return true;
	}

	return false;
}